<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/bootstrap.min.css">
    <script src="/static/js/jquery-2.2.4.js"></script>
    <script >
        $(function(){
            $.get("/userInfo",function(r){
                if(r.code==0){
                    $("#username").html(r.username);
                    // if("所有权限".indexOf("sys:user:add")>-1){//出现  有权限
                    //
                    // }
                }
            })
        });
    </script>

</head>
<body>

<H1><span id="username"></span>，欢迎您！</H1>

</body>
</html>